<!DOCTYPE html>
<html>
<head>
    <title>管理员列表</title>
    <#include "../resource.ftl"/>
    <script type="text/javascript" src="/sysjob/js/list.js?t="+t></script>
</head>
<body>
<form class="layui-form " action="">
    <div class="layui-form-item">
        <label class="layui-form-label">描述:</label>
        <div class="layui-input-inline">
            <input type="text" name="jobName" placeholder="请输入描述" class="layui-input">
        </div>
        <div class="layui-input-inline">
            <button class="layui-btn search-btn" table-id="sysjobTable" lay-submit="" lay-filter="search"><i class="fa fa-search">&nbsp;</i>查询
            </button>
            <button type="reset" class="layui-btn layui-btn-primary"><i class="fa fa-refresh">&nbsp;</i>重置</button>
        </div>
    </div>
</form>
<div class="layui-btn-group">
<@shiro.hasPermission name="sysjob:save">
    <button class="layui-btn" onclick="add('/sysjob/add')"><i class="fa fa-plus">&nbsp;</i>增加</button>
</@shiro.hasPermission>
<@shiro.hasPermission name="sysjob:update">
    <button class="layui-btn" onclick="edit('sysjobTable','/sysjob/edit')" style="margin-left: 5px!important;">
        <i class="fa fa-pencil-square-o">&nbsp;</i>修改
    </button>
</@shiro.hasPermission>
<@shiro.hasPermission name="sysjob:delete">
    <button class="layui-btn" onclick="deleteBatch('sysjobTable','/sysjob/delete');" style="margin-left: 5px!important;">
        <i class="fa fa-trash-o">&nbsp;</i>删除
    </button>
</@shiro.hasPermission>

</div>
<div class="layui-form ">
    <table class="layui-table" id="sysjobTable" cyType="pageGrid"
           cyProps="url:'/sysjob/listData',checkbox:'true',pageColor:'#2991d9'">
        <thead>
        <tr>
            <!--复选框-->
            <th width="1%" param="{type:'checkbox'}">
                <input type="checkbox" lay-skin="primary" lay-filter="allChoose">
            </th>
            <!--isPrimary：是否是主键-->
            <th width="10%" param="{name:'id',isPrimary:'true',hide:'true'}"></th>
            <th width="10%" param="{name:'jobName'}">描述任务</th>
            <th width="10%" param="{name:'cron',sort:'true'}">任务表达式</th>
            <th width="10%" param="{name:'status',codeName:'jobStatus',render:'Render.customState'}">状态</th>
            <th width="10%" param="{name:'clazzPath',sort:'true'}">任务执行方法</th>
            <th width="10%" param="{name:'jobDesc',sort:'true'}">其他描述</th>
            
            <th width="10%" param="{operate:'true',buttons:'Render.customIcon'}">操作</th>
        </tr>
        </thead>
    </table>
</div>

</body>
</html>